import http from "@/tools/request"


/**
 * 管理员登录
 * @param {Object} data
 */
export function LoginAPI(data) {
  return http({
     method: "post",
     url: "/auth/admin_login",
     data
   })
   .then(res=>res.data)
 }

/**
 * 用户登注册
 * @param {Object} data
 */
export function UserRegAPI(data) {
  return http({
     method: "post",
     url: "/auth/reg",
     data
   })
   .then(res=>res.data)
 }
 //用户登录
 ///auth/login
 export function UserLoginAPI(data) {
  return http({
     method: "post",
     url: "/auth/login",
     data
   })
   .then(res=>res.data)
 }
